package cn.enilu.flash.bean.enumeration.shop;

/**
 * 支付状态
 */
public enum PayStatusEnum {
    payment(3,"支付中","payment"),
    nonPayment(1,"未支付","nonPayment"),
//    cancelPayment(3,"取消支付","cancelPayment"),
    havePaid(2,"已支付","havePaid");
//    refunded(5,"已退款","refunded");
    private int key;
    private String name;
    private String name_pay;

    PayStatusEnum(int key, String name, String name_pay) {
        this.key=key;
        this.name=name;
        this.name_pay =name_pay;
    }
    public static  PayStatusEnum getValueOf(int key){
        for(PayStatusEnum val:PayStatusEnum.values()){

            if(val.getKey() == key){
                return  val;
            }
        }
        return  null;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName_pay() {
        return name_pay;
    }

    public void setName_pay(String name_pay) {
        this.name_pay = name_pay;
    }
}
